package com.ytjj.qmyx.mall.service.h5;

import com.ytjj.qmyx.mall.model.CouponRecords;
import com.ytjj.qmyx.mall.model.response.H5UserCouponResponse;
import com.ytjj.qmyx.mall.model.response.ProductResponse;

import java.util.List;

/**
 * h5红包抵扣活动
 */
public interface H5CashCouponService {

    /**
     * 查询商品列表
     * @return
     */
    List<ProductResponse> getCouponList(Integer pageNum, Integer pageSize,Integer columnId,Integer flag);

    /**
     * 查询用户领取
     * @return
     */
    H5UserCouponResponse getUserCouponList(Integer obtain);

    /**
     * 领取红包
     * @param productId
     * @return
     */
    CouponRecords obtainCoupon(Integer productId);
}
